FUNCTION
virtual_map.get_or_default
function get_or_default<R>(key: K, default: R): RGet the value associated with the given key in this map.
Parameters
- key — the key to look up
- default — the default value (lazily evaluated) to return if the key is not found
Returns
the value associated with the given key in this map, or default if the key is not found
Since
0.11.0
© 2026 Chromia